const { http } = uni.$u
// 获取登陆信息
export const getOpenid = (params) => http.post('/jxcUser/getOpenid', params);

//登录
export const login = (params) => http.post('/jxcUser/login', params)
export const getuserinfor = (params) => http.post('/jxcUser/getuserinfor', params)
export const getinfor = (params) => http.post('/jxcNotice/getinfor', params)
export const payOrder = (params) => http.post('/wxpay/getWxPay', params)
export const getWxPayState = (params) => http.post('/wxpay/getWxPayState', params)
export const getamount = (params) => http.post('/jxcUser/getamount', params)
export const getyueamount = (params) => http.post('/jxcUser/getyueamount', params)
export const getnianamount = (params) => http.post('/jxcUser/getnianamount', params)
export const DXFW = (params) => http.post('/jxcUser/DXFW', params)
export const YZYZM = (params) => http.post('/jxcUser/YZMYZ', params)
export const register = (params) => http.post('/jxcUser/add', params)
export const companyisregister = (params) => http.post('/jxcUser/companyisregister', params)
export const quit = (params) => http.post('/jxcOpenuser/quit', params)

//查询详情
export const queryczrz = (params) => http.post('/jxcCzrz/queryczrz', params)
export const infor = (params) => http.post('/jxcPici/queryall', params)
export const payinfor = (params) => http.post('/jxcPayinfor/queryall', params)
//修改详情
export const inforupdate = (params) => http.put('/jxcPici', params)
//删除详情
export const infordelete = (params) => http.delete('/jxcPici', params)

//进货单查询
export const Stockqueryall = (params) => http.post('/jxcStock/queryall', params)
//客户查询
export const Customqueryall = (params) => http.post('/jxcCustom/queryall', params)
//销货单查询
export const Salequeryall = (params) => http.post('/jxcSale/queryall', params)
//供应商查询
export const Supplierqueryall = (params) => http.post('/jxcSupplier/queryall', params)
//成本费用查询
export const Costqueryall = (params) => http.post('/jxcCost/queryall', params)
export const modelqueryall = (params) => http.post('/jxcPici/modelall', params)
export const tranerqueryall = (params) => http.post('/jxcPici/tranerall', params)

//进货单模糊查询
export const Stocklikeall = (params) => http.post('/jxcStock/likeall', params)
//客户模糊查询
export const Customlikeall = (params) => http.post('/jxcCustom/likeall', params)
//销货单模糊查询
export const Salelikeall = (params) => http.post('/jxcSale/likeall', params)
//供应商模糊查询
export const Supplierlikeall = (params) => http.post('/jxcSupplier/likeall', params)
//成本费用模糊查询
export const Costlikeall = (params) => http.post('/jxcCost/likeall', params)

//进货单新增
export const Mydadd = (params) => http.post('/jxcMyd/add', params)
export const Stockadd = (params) => http.post('/jxcPici/add', params)
//客户新增
export const Customadd = (params) => http.post('/jxcCustom/add', params)
//销货单新增
export const Saleadd = (params) => http.post('/jxcPici/add', params)
//供应商新增
export const Supplieradd = (params) => http.post('/jxcSupplier/add', params)
//成本费用新增
export const Costadd = (params) => http.post('/jxcCost/add', params)
export const Payinforadd = (params) => http.post('/jxcPayinfor/add', params)

//进货单修改
export const Stockupdate = (params) => http.put('/jxcStock/update', params)
//客户修改
export const Customupdate = (params) => http.put('/jxcCustom/update', params)
//销货单修改
export const Saleupdate = (params) => http.put('/jxcSale/update', params)
//供应商修改
export const Supplierupdate = (params) => http.put('/jxcSupplier/update', params)
//成本费用修改
export const Costupdate = (params) => http.put('/jxcCost/update', params)
export const Payinforupdate = (params) => http.put('/jxcPayinfor/update', params)


//进货单删除
export const Stockdelete = (params) => http.delete('/jxcStock', params)
// export const Stockdelete = (params) => http.delete('/jxcStock?idList=', params)
//客户删除
export const Customdelete = (params) => http.delete('/jxcCustom', params)
//销货单删除
export const Saledelete = (params) => http.delete('/jxcSale', params)
//供应商删除
export const Supplierdelete = (params) => http.delete('/jxcSupplier', params)
//成本费用删除
export const Costdelete = (params) => http.delete('/jxcCost', params)
export const Payinfordelete = (params) => http.delete('/jxcPayinfor', params)
